package com.foreknow.oop8;

public class Manager {
  public void m(A a) {
    a.method1();
  }

  public A m1(){
    A a = new AImpl();
    return a;
  }

  public static void main(String[] args) {
    Manager manager = new Manager();
//    A a = new AImpl();
    A aaa = manager.m1();
    aaa.method1();
  }
}
